package com.woniu.controller.healthSystem;

import com.woniu.model.gh.common.Result;
import com.woniu.model.healthSystem.entity.ManagerRole;
import com.woniu.service.healthSystem.IManagerRoleServiceGb;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 职员角色表 前端控制器
 * </p>
 *
 * @author gb
 * @since 2023-10-19
 */
@RestController
@RequestMapping("/managerRole")
public class ManagerRoleControllerGb {

    @Autowired
    private IManagerRoleServiceGb managerRoleService;

    /**
     * 查询所有的角色
     */
    @GetMapping("/find")
    public Result<List<ManagerRole>> findAll() {
        List<ManagerRole> roleList = managerRoleService.findAll();
        return Result.ok(roleList);
    }

}
